(1)
This example demonstrates reading and writing to the port address.
MAIN.C
void main(void)
{
/* Wait until "0xFFFF" is on the port address */
while ( EIO21_GetVal() != 0xFFFF );
/* Put "0xAAAA" to the port address */
EIO21_PutVal(0xAAAA);
}
For more about typical usage of the bean code please refer to the page Bean Code Typical Usage.